package cn.tedu.egweibo4.pojo.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class UserRegDTO {
    @ApiModelProperty(value = "用户昵称",required = true)
    private String nickname;
    @NotNull(message = "密码不能为空")
    @Size(min = 1, max =5,message = "密码长度为1-5")
    @ApiModelProperty(value = "用户密码",required = true)
    private String password;
    @Size(min = 1,max = 5,message = "用户名长度为1-6")
    @ApiModelProperty(value = "用户名",required = true)
    private String username;
}
